#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    ui->checkBox->setFixedSize(128,64);

    QString qss = "QCheckBox::indicator:unchecked{ \
        image:url(:/resources/status_close.png); }\
                  QCheckBox:indicator:checked{ \
                  image:url(:/resources/status_open.png)}";

    ui->checkBox->setStyleSheet(qss);
    ui->checkBox->setChecked(true);

}

Widget::~Widget()
{
    delete ui;
}
